package com.jing.mall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 1.整合mybatis-plus
 *    1.导入依赖
 *    2.配置
 *     一。配置数据源
 *     二。配置mybatis-plus数据源
 *     三。配置驱动
 *     四，使用MapperScan扫描mapper
 *     五。告诉mybatis映射文件位置
 */
@EnableCaching
@EnableFeignClients(basePackages = "com.jing.mall.product.feign")
@MapperScan("com.jing.mall.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class MallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallProductApplication.class, args);
    }

}
